<?php
Doo::loadCore('db/DooModel');

class FrbFlatImmeubleBase extends DooModel
{

    /**
     * @var int Max length is 11.
     */
    public $imm_id;

    /**
     * @var varchar Max length is 120.
     */
    public $imm_nom;

    /**
     * @var varchar Max length is 120.
     */
    public $imm_adr;

    /**
     * @var int Max length is 11.
     */
    public $vil_id;

    public $_table = 'frbFlat_immeuble';
    public $_primarykey = 'imm_id';
    public $_fields = array('imm_id','imm_nom','imm_adr','vil_id');

    public function getVRules() {
        return array(
                'imm_id' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'optional' ),
                ),

                'imm_nom' => array(
                        array( 'maxlength', 120 ),
                        array( 'notnull' ),
                ),

                'imm_adr' => array(
                        array( 'maxlength', 120 ),
                        array( 'notnull' ),
                ),

                'vil_id' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'notnull' ),
                )
            );
    }

}